<!doctype html>
<title>Using indexOf</title>

<script>

var longStringOfText = "This string contains the word north.";

if(longStringOfText.indexOf("north") !== -1)
{ 
 console.log("word found");
}
else
{
  console.log("word not found");
}

</script>